#pragma once
#include "wx/panel.h"
//generic\panelg.h"
class CCommandPanel :
	public wxPanel
{
public:
	CCommandPanel(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 447,222 ), long style = wxTAB_TRAVERSAL);
	~CCommandPanel(void);

	//wxTextCtrl* m_commandTextBox;
	//wxComboBox* m_commandComboBox;
	void SetText (const wxString & text_command, const wxString & text_output = wxEmptyString);
	
	void AddLine (const wxString & text_command);

	void SetParent (void *Parent)
	{
		m_pParent = Parent;
	};
	
	wxTextCtrl *TextControl();

	void Clear ();

	//void Do (const wxString &s);
	int out_ (const char *s);

private:
	void OnComboBoxEnter (wxCommandEvent& event);
	void OnClear (wxCommandEvent& event);

	void *m_pParent;

	wxTextCtrl *m_textControl;
	wxString Name;
};

//static int out_ (const char *s)
//{
//	return 1;
//}